<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Test Templum in life</title>
</head>
<body>

<h3>Include file</h3>
<blockquote>
	<include 'test2.html'/>
</blockquote>

<h3>Helpers</h3>
<helper ('Crop this text in 10 characters')->Crop(10)/><hr/>
Today: <helper ()->Date('DD MONTH, YYYY')/><hr/> 
Old date: <helper (1000000001)->Date('DD MONTH, YYYY')/><hr/> 
<helper ('It\'s text "crop" and "escape" after first operation')->Crop(15)->Escape/>  

<h3>Conditions</h3>

<if (0==0)>0 == 0</if><hr/>
<if (0==1)>0 == 1<else/>0 != 1</if><hr/>

<if (1==0)>First
<elseif (1==1)/>Second
<else/>Third
</if>

<h3>Loop</h3>

<foreach ($test as $val)>
    <if (0==$val%2)>+</if>
	<$val/><br/>
</foreach>
<hr/>
<foreach ($not_exist as $val)>
	<$val/><br/>
<else/>
	Loop variable not exist or empty!
</foreach>

<h3>Pager</h3>

<helper ()->Pager(10, 3, 5)/><hr/>

</body>
</html>